package com.youth.framework.authority.entity;

import java.util.ArrayList;
import java.util.List;


import com.youth.platform.entity.User;

public class Role extends BaseAuth {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 角色id
	 */
	private String roleId;

	/**
	 * 角色名称
	 */
	private String roleName;

	/**
	 * 角色描述
	 */
	private String roleDesc;
	
	/**
	 * 角色对应的权限
	 */
	private List<Authority> authorityList = new ArrayList<Authority>();
	
	/**
	 * 角色对应的资源
	 */
	private List<Resources> resources;

	/**
	 * 角色对应的用户，一个用户对应一个角色，一个角色可以对应多个用户
	 * 适当的时候扩展
	 */
	private List<User> userList = new ArrayList<User>();

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleDesc() {
		return roleDesc;
	}

	public void setRoleDesc(String roleDesc) {
		this.roleDesc = roleDesc;
	}

	public List<User> getUserList() {
		return userList;
	}

	public void setUserList(List<User> userList) {
		this.userList = userList;
	}

	public List<Authority> getAuthorityList() {
		return authorityList;
	}

	public void setAuthorityList(List<Authority> authorityList) {
		this.authorityList = authorityList;
	}

	public List<Resources> getResources() {
		return resources;
	}

	public void setResources(List<Resources> resources) {
		this.resources = resources;
	}

}
